package com.example.bookstore.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.bookstore.common.PageResult;
import com.example.bookstore.common.Result;
import com.example.bookstore.dto.QueryCartParamsDto;
import com.example.bookstore.entity.Cart;

import java.util.List;

public interface CartService extends IService<Cart> {
    Result<String> addCart(Cart cart);



    Result updateQuantity(int quantity, int id);

    PageResult<Cart> selectCart(int pageSize, int currentPage, QueryCartParamsDto params);


    Result deleteCarts(List<Integer> ids);
}
